import huck

class MainPage(huck.RequestHandler):
  def get(self):
    self.response.out.write('<html><body>')
    self.response.out.write('<h1>Hello World</h1>')
    self.response.out.write('</body></html>')

# Setup application
url_mapping = [('/', MainPage),]
application = huck.Application(url_mapping, debug=True)

if __name__ == '__main__':
  huck.run_dev('', 8080, application)
